package com.sql.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.sql.mapper.SqlServerMapper;
import com.sql.pojo.SqlServer;
import com.sql.service.SqlService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@DS("sqlserver")
public class SqlServiceImpl implements SqlService {

    @Resource
    private SqlServerMapper sqlServerMapper;

    @Override
    public List<SqlServer> find() {
        return sqlServerMapper.selectList(null);
    }
}
